package br.edu.ufcg.gmf.mdaveritas.util.pnmlconverter.entities;

import java.util.List;

public abstract class Node extends Element {
	private String name;
	private List<Arc> incArcs;
	private List<Arc> outArcs;

	public Node() {

	}

	public List<Arc> getIncArcs() {
		return incArcs;
	}

	public void setIncArcs(List<Arc> incArcs) {
		this.incArcs = incArcs;
	}

	public List<Arc> getOutArcs() {
		return outArcs;
	}

	public void setOutArcs(List<Arc> outArcs) {
		this.outArcs = outArcs;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return getName();
	}

	@Override
	public boolean equals(Object obj) {
		return this.getId().equals(((Node) obj).getId())
				&& this.getName().equals(((Node) obj).getName());
	}
}
